<form name="form" novalidate ng-submit="vm.save()">
    <div class="modal-header">
        <h4 class="modal-title">扩缩容</h4>
    </div>
    <div class="modal-body">
        <div>服务 <span class="text-danger">{{::vm.name}}</span> 将更改当前 <b>Desired</b> 个数</div>
        <div>当前容器状态: <span class="text-info">{{::vm.created}} Created</span> , {{::vm.desired}} Desired</div>
        <div class="form-group margin-top-15 margin-bottom-0" ng-class="{'has-error': form.replicas.$error.pattern}">
            <input maxlength="10" type="text" name="replicas" ng-model="vm.repVal" class="form-control"
                   ng-pattern="/^[1-9]\d*$/" placeholder="请输入Pod 实例数" required/>
            <div class="text-danger" ng-show="form.replicas.$error.pattern">请输入有效的Pod 实例数</div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="submit" ng-disabled="form.$invalid" class="btn btn-primary btn-sm">确定</button>
        <button ng-click="vm.cancel()" type="button" class="btn btn-default btn-sm">取消</button>
    </div>
</form>